#!/usr/bin/python

arc= open("a", "r")
out= open("rename.sh", "w")
for line in arc.readlines():
	out.write("mv " + line[:len(line)-1] + " " + line.replace(".a","_a").replace("0.", "0_"))

arc.close()
out.close()
